<%= meta %>

<title>图片列表</title>
</head>
<body>
  <%= header %>
  <%= menu %>
  <section class="Hui-article-box">
  	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 众筹项目 <span class="c-gray en">&gt;</span> 新建项目列表  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
  	<div class="Hui-article">
  		<article class="cl pd-20">
  			<div class="text-c">
          编号：<input type="text" class="input-text" style="width:120px;">　
          位置：<span class="select-box mr-20" style="width:120px">
      					<select name="" class="select">
      						<option value="0">首款</option>
      						<option value="13">尾款</option>
      					</select>
      					</span>　
  				<button name="" id="" class="btn btn-success radius" type="submit"><i class="Hui-iconfont">&#xe665;</i> 查 询</button>
  			</div>
  			<div class="cl pd-5 bg-1 bk-gray mt-20">
  				<span class="l">
            <a class="btn btn-primary radius" onClick="project_edit('CMS-公告列表-添加','CMS-公告列表-添加.html','10001')"  href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添 加</a>
          </span>
  				<span class="r" style="line-height:30px;">共有数据：<strong>1</strong> 条</span> </div>

          <div class="mt-20">
    				<table class="table table-border table-bordered table-bg table-hover table-sort">
    					<thead>
    						<tr class="text-c">
    							<th width="40">序号</th><th width="100">位置</th>
    							<th width="100">轮播图名称</th><th>链接</th><th width="80">状态</th><th width="70">添加时间</th>
                  <th width="100">操作</th>
    						</tr>
    					</thead>
    					<tbody>
    						<tr class="text-c">
    							<td>1</td><td>北京玉之光众筹</td><td>收益权众筹</td><td>医美</td>
    							<td>100万</td><td>3</td>
                  <td class="f-14 td-manage">
                    <a style="text-decoration:none" class="ml-5" onClick="project_edit('CMS-公告列表-添加','CMS-公告列表-添加.html','10001')" href="javascript:;" title="查看"><i class="Hui-iconfont">&#xe725;</i></a>
    								<a style="text-decoration:none" onClick="project_stop(this,'10001')" href="javascript:;" title="下架"><i class="Hui-iconfont">&#xe6de;</i></a>
    							</td>
    						</tr>
    					</tbody>
    				</table>
    			</div>


    	</article>
  	</div>
  </section>

  <%= footer %>
	<!-- 时间插件 -->
	<link href="lib/datetimepicker/datetimepicker.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="lib/datetimepicker/datetimepicker.js"></script>
  <script>

	//*项目-编辑*/
	function project_edit(title,url,id,w,h){
		var index = layer.open({
			type: 2,
			title: title,
			content: url
		});
		layer.full(index);
	}
// 时间
	$('#datetimepicker2,#datetimepicker3').datetimepicker({
		yearOffset:0,
		lang:$.datetimepicker.setLocale('ch'),
		timepicker:false,
		format:'Y-m-d',
		formatDate:'Y/m/d',
	});
  /*资讯-下架*/
  function project_stop(obj,id){
  	layer.confirm('确认要下架吗？',function(index){
  		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="project_start(this,id)" href="javascript:;" title="发布"><i class="Hui-iconfont">&#xe603;</i></a>');
  		$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已下架</span>');
  		$(obj).remove();
  		layer.msg('已下架!',{icon: 5,time:1000});
  	});
  }

  /*资讯-发布*/
  function project_start(obj,id){
  	layer.confirm('确认要发布吗？',function(index){
  		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="article_stop(this,id)" href="javascript:;" title="下架"><i class="Hui-iconfont">&#xe6de;</i></a>');
  		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发布</span>');
  		$(obj).remove();
  		layer.msg('已发布!',{icon: 6,time:1000});
  	});
  }
  </script>
</body>
</html>
